import request from '@/utils/request'

// 查询预约看房设置列表
export function listAppointmentViewSetting(query) {
  return request({
    url: '/mall/appointmentViewSetting/list',
    method: 'get',
    params: query
  })
}

// 查询预约看房设置详细
export function getAppointmentViewSetting(id) {
  return request({
    url: '/mall/appointmentViewSetting/' + id,
    method: 'get'
  })
}

// 新增预约看房设置
export function addAppointmentViewSetting(data) {
  return request({
    url: '/mall/appointmentViewSetting',
    method: 'post',
    data: data
  })
}

// 修改预约看房设置
export function updateAppointmentViewSetting(data) {
  return request({
    url: '/mall/appointmentViewSetting',
    method: 'put',
    data: data
  })
}

// 删除预约看房设置
export function delAppointmentViewSetting(id) {
  return request({
    url: '/mall/appointmentViewSetting/' + id,
    method: 'delete'
  })
}

// 导出预约看房设置
export function exportAppointmentViewSetting(query) {
  return request({
    url: '/mall/appointmentViewSetting/export',
    method: 'get',
    params: query
  })
}